package com.hpf.gupao.principle.rely;

/**
 * @description:
 * @datetime: 2021/5/16 14:05
 * @author: huangpengfei
 */
public class Test {

    public static void main(String[] args){
//        Tom one = new Tom(new JavaCourse(),"Tom");
//        one.study();
//        Tom two = new Tom(new PythonCourse(),"Fred");
//        two.study();

//        Tom tom = new Tom();
//        tom.study(new JavaCourse());

        Tom tom = new Tom();
        tom.setCourse(new JavaCourse());
        tom.study();
    }
}
